import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import Login from '../views/Login.vue'
import Register from '../views/Register.vue'

import Wode from '../views/Wode.vue'
import Gouwuche from '../views/Gouwuche.vue'
import Caipu from '../views/Caipu.vue'
import Fenlei from '../views/Fenlei.vue'
import Xiangqing from '../views/Xiangqing.vue'



Vue.use(VueRouter)

const routes = [
  {path:'/xiangqing',name:'Xiangqing',component:Xiangqing},
  {path:'/fenlei',name:'Fenlei',component:Fenlei},
  {path:'/caipu',name:'Caipu',component:Caipu},
  {path:'/wode',name:'Wode',component:Wode},
  {path:'/gouwuche',name:'Gouwuche',component:Gouwuche},
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/login',
    name: 'Login',
    component: Login
  },
  {
    path: '/register',
    name: 'Register',
    component: Register
  },
  {
    path: '/about',
    name: 'About',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  }
]

const router = new VueRouter({
    mode: 'history',
    base: process.env.BASE_URL,
    routes
})

export default router